const express =require("express")
const data =require("./data.json")
const app = express()

app.get("/api/seller", (req, res) => {
    res.json({
      data: data.seller,
    });
  });
  app.get("/api/goods", (req, res) => {
    res.json({
      data: data.goods,
    });
  });


  app.listen(3006, () => {
    console.log("服务已启动：http://localhost:3006");
  });